package com.yzy.controller;

import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * @author yangzhenyu
 * @version 1.0
 * @description:
 * @date 2022/7/4 13:36
 */
public class Test5 {
    public static void main(String[] args) {
             List<String> list = new ArrayList<>();
             list.add("122");
             list.add("232");
             StringBuffer buffer = new StringBuffer("");
             list.forEach(v->{
                 buffer.append(String.format("'%s',", v));
             });
        String substring = buffer.substring(0, buffer.length() - 1);
        System.out.printf(substring);
    }
}
